﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="edit.aspx.cs" Inherits="AnyOffice.general.system.menu.edit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title></title>
    <script Language="JavaScript">
function CheckForm()
{
   if(document.form1.txtMenuId.value=="")
   { alert("菜单ID不能为空！");
     return (false);
   }

   if(document.form1.txtMenuId.value.length!=2)
   { alert("菜单ID应为2位数字！");
     return (false);
   }

   if(document.form1.txtMenuId.value=="")
   { alert("菜单名称不能为空！");
     return (false);
   }
   
   if(document.form1.txtImage.value=="")
   { alert("菜单图片不能为空！");
     return (false);
   }
}
</script>
</head>
<body class="bodycolor" topmargin="5">
    <form id="form1" runat="server">
     <div class="main_div">
    <asp:Panel ID="pnlMain" runat="server">
    <table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
      <tr>
        <td class="tab_ti">编辑菜单主分类
        </td>
      </tr>
    </table>

    <br>
    <table border="0" cellspacing="0" width="500" class="tab_pub" cellpadding="0" align="center" >
       <tr>
        <td nowrap class="ta_bg" width="120">主菜单分类代码：</td>
        <td nowrap class="ta_txt">
            <input type="text" name="txtMenuId" class="BigStatic" size="2" maxlength="2" value="" id="txtMenuId" runat="server">
            代码请尽量间隔开，2位数字
        </td>
       </tr>
       <tr>
        <td nowrap class="ta_bg">菜单名称：</td>
        <td nowrap class="ta_txt">
            <input type="text" name="txtMenuName" class="BigInput" size="20" maxlength="50" value="" id="txtMenuName" runat="server">&nbsp;
        </td>
       </tr>
       <tr>
        <td nowrap class="ta_bg">图片名：</td>
        <td nowrap class="ta_txt">
            <input type="text" name="txtImage" class="BigInput" size="20" maxlength="50" value="" id="txtImage" runat="server">&nbsp;
        </td>
       </tr>
       <tr>
        <td nowrap  class="bnt_con" colspan="2" align="center">
            <input type="submit" value="确 定" class="BigButton" onclick="return CheckForm();">
            <input type="button" value="返 回" class="BigButton" onclick="location='blank.aspx'">
        </td>
    </table>
        
        </asp:Panel>
        <asp:Literal ID="litMessage" runat="server"></asp:Literal>
        </div>
    </form>
</body>
</html>
